from database import db
from flask import jsonify,request,Blueprint
bp_goods = Blueprint('goods',__name__)
@bp_goods.route('/')
def Goods():
    sql = 'select * from cgoods'
    res = db.findall(sql)
    return jsonify({"code":200,'list':res})
